package com.gengine.resource
{
	import com.gengine.resource.info.*;
	import com.gengine.resource.loader.*;
	
	public class FileType extends Object
	{
		private static var _classRef:Object = {XML:XMLLoader, JPG:ImageLoader, PNG:ImageLoader, GIF:ImageLoader, DATA:DataLoader, SWF:SWFLoader, MPT:MapDataLoader, JTA:JTALoader};
		private static var _classInfoRef:Object = {XML:XMLInfo, JPG:ImageInfo, PNG:ImageInfo, GIF:ImageInfo, DATA:DataInfo, SWF:SWFInfo, MPT:MapDataInfo, JTA:JTAInfo};
		
		public function FileType()
		{
			
		}
		
		public static function getLoaderByType(param1:String) : Class
		{
			return _classRef[param1.toUpperCase()];
		}
		
		public static function getLoaderInfoByType(param1:String) : Class
		{
			return _classInfoRef[param1.toUpperCase()];
		}
		
	}
}
